﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;

namespace zielonka.co.uk.extensions.system
{
    public static partial class StringExtensions
    {
        public static string ToHtmlEncodedString(this string s)
        {
            if (String.IsNullOrEmpty(s))
                return s;
            return HttpUtility.HtmlEncode(s);
        }
    }
}
